import request from "../utils/request";

export function getUserList(){
    return request.get('/user/list');
}

export function getNotDeptManagerList(){
    return request.get('/user/getNotDeptManagerList');
}

export function getDeptManagerList(){
    return request.get('/user/getDeptManagerList');
}

export function getChargeList(){
    return request.get('/user/getChargeList');
}

export function addUser(params){
    return request.post('/user/addUser',params);
}

export function getUserByDeptId(deptId){
    return request.get(`/user/getUserByDeptId/${deptId}`);
}

export function getAdminList(){
    return request.get('/user/getAdminList');
}

export function deleteUserById(id){
    return request.delete(`/user/deleteUserById/${id}`);
}

export function getUserDetialById(id){
    return request.get(`/user/getUserDetialById/${id}`);
}


export function updateUser(data){
    return request.put(`/user/updateUser`,data);
}

export function updateUserPassword(id){
    return request.put(`/user/updateUserPassword/${id}`);
}

export function updateUserDetailById(data){
    return request.put(`/user/updateUserDetailById`,data);
}

export function updatePassword(data){
    return request.put(`/user/updatePassword`,data);
}

export function getFather(){
    return request.get('/user/getFather');
}